![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
unicode-match-property-value
Advanced tools
Readme
unicode-match-property-value matches a given Unicode property value or property value alias to its canonical property value without applying loose matching. Consider it a strict alternative to loose matching.
To use unicode-match-property-value programmatically, install it as a dependency via npm:
$ npm install unicode-match-property-value
Then, require
it:
const matchPropertyValue = require('unicode-match-property-value');
This module exports a single function named matchPropertyValue
.
matchPropertyValue(property, value)
This function takes a string property
that is a canonical/unaliased Unicode property name, and a string value
. It attemps to match value
to a canonical Unicode property value for the given property. If there’s a match, it returns the canonical property value. Otherwise, it throws an exception.
// Find the canonical property value:
matchPropertyValue('Block', 'Alphabetic_PF')
// → 'Alphabetic_Presentation_Forms'
matchPropertyValue('Block', 'Alphabetic_Presentation_Forms')
// → 'Alphabetic_Presentation_Forms'
matchPropertyValue('block', 'Alphabetic_PF') // Note: incorrect casing.
// → throws
matchPropertyValue('Block', 'alphabetic_pf') // Note: incorrect casing.
// → throws
Mathias Bynens |
unicode-match-property-value is available under the MIT license.
FAQs
Match a Unicode property or property alias to its canonical property name without loose matching.
The npm package unicode-match-property-value receives a total of 11 weekly downloads. As such, unicode-match-property-value popularity was classified as not popular.
We found that unicode-match-property-value demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.